<form action="RegisterServlet" method="POST" id="frmRegister">
    <table border="0">
        <tr>
            <td>Username</td>
            <td><input type="text" name="txtUsername" id="txtUsername" class="required"/></td>
        </tr>
        <tr>
            <td>Password</td>
            <td><input type="password" name="txtPassword" id="txtPassword" class="required" minlength="6"/></td>
        </tr>
        <tr>
            <td>Confirm password</td>
            <td><input type="password" name="txtConfirmPassword" id="txtConfirmPassword" class="required" minlength="6"/></td>
        </tr>
        <tr>
            <td>Email</td>
            <td><input type="text" name="txtEmail" class="required email" id="txtEmail" /></td>
        </tr>
        <tr>
            <td>Confirm email</td>
            <td><input type="text" name="txtConfirmEmail" class="required email" id="txtConfirmEmail"/></td>
        </tr>
        <tr>
            <td>Avatar</td>
            <td><input type="file" name="fileSelect" class="required" accept="jpg|png"/></td>
        </tr>
        <tr>
            <td><input type="submit" value="Register" /></td>
            <td><a href="index.jsp">Back home page</a></td>
        </tr>
        <tr>
            <td></td>
            <td></td>
        </tr>
    </table>

</form>